package code.rocky.immutable;

public class PrintPersonThread extends Thread {
    private User user;

    public PrintPersonThread(User user) {
        this.user = user;
    }

    public void run() {
        while (true) {
            System.out.println(Thread.currentThread().getName() + " prints " + user);
        }
    }
}